package com.example.springbootdemo.mapper;

import com.example.springbootdemo.model.UserModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<UserModel> findAll();

    int insertUser(UserModel userModel);

    UserModel findUserById(String id);

    int updateUserById(UserModel userModel);

    int deleteUserById(String id);

    List<UserModel> seachUser(UserModel userModel);
}
